package com.yunfei.api.v3;

import com.yunfei.api.v1.magerIndcInfo.service.MagerIndcInfoService;
import com.yunfei.api.v2.contants.QueryHeTongSignInfoContant;
import com.yunfei.api.v2.enums.GetAccountInfoEnum;
import com.yunfei.api.v2.param.*;
import com.yunfei.api.v2.result.GetAccountInfo;
import com.yunfei.api.v2.result.YuYueInfoResult;
import com.yunfei.api.v2.service.*;
import com.yunfei.fegin.RedisFeignService;
import com.yunfei.mapper.aiiidb.GetStatusMapper;
import com.yunfei.mapper.aiiidb.MagerIndcInfoMapper;
import com.yunfei.mapper.aiiidb.MagerIndcInfoTemplateMapper;
import com.yunfei.mapper.aiiidb.TPersonalUserMapper;
import com.yunfei.ribbon.RedisServiceRibbon;
import com.yunfei.service.RedisService;
import com.yunfei.service.ValidMobileAndCodeService;
import com.yunfei.utils.string.StringUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 预约信息
 * @Author: zhengyunfei
 * @Date: 2018/6/15
 * @time:11:26
 */
@SuppressWarnings("ALL")
@RestController
@RequestMapping("/api/v2/yuYueInfo")
@Api(value = QueryHeTongSignInfoContant.YUYUE_INFO_NAMESPACE,hidden = true,tags =  QueryHeTongSignInfoContant.YUYUE_INFO_NAMESPACE )
public class YuYueInfoApiController {
    @Autowired
    private TPersonalUserMapper tPersonalUserMapper;
    @Autowired
    private GetStatusMapper getStatusMapper;
    @Autowired
    private RedisFeignService redisFeignService;
    @Autowired
    private RedisService redisService;
    @Autowired
    private RedisServiceRibbon redisServiceRibbon;
    @Autowired
    private ValidMobileAndCodeService validMobileAndCodeService;
    @Autowired
    private Environment env;
    @Autowired
    private MagerIndcInfoMapper magerIndcInfoMapper;
    @Autowired
    private MagerIndcInfoTemplateMapper magerIndcInfoTemplateMapper;
    @Autowired
    private MagerIndcInfoService magerIndcInfoService;
    @Autowired
    private HTSGetStatusService htsGetStatusService;
    @Autowired
    private HTSGetAccountInfoService htsGetAccountInfoService;
    @Autowired
    private HTSAddAccountService htsAddAccountService;
    @Autowired
    private HTYuYueInfoService htYuYueInfoService;
    @Autowired
    private GetElecHeTongNoService getElecHeTongNoService;
    /**
     * @Description: 预约信息（获取电子合同要素）
     * @Author: zhengyunfei
     * @Date: 2019/7/29
     * @time:10:30
     */
    @PostMapping(value="/get")
    @ApiOperation(position = 3,hidden = true,value = QueryHeTongSignInfoContant.GET_YUYUE_INFO,notes = QueryHeTongSignInfoContant.GET_YUYUE_INFO,response = YuYueInfoResult.class)
    @ResponseBody
    public Object getYuYueInfo(ReserveNoParam param){
        return htYuYueInfoService.get(param);
    }


}
